package com.me.study.importSelector;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.springframework.context.annotation.Import;

/**
 * 使用 TestImportSelector 注册 bean，并配置一个开关
 *
 * @author ME
 * @date   2020/1/2
 */
@Retention(RetentionPolicy.RUNTIME)
@Import({ TestImportSelector.class, TestDeferredImportSelector.class })
public @interface EnableSelector {

	boolean isEnable() default true;
}
